package pers.xukai.common.constant.response;

/**
 * 响应枚举类
 * @author 殷绪凯
 * @since 2022/11/29
 */
public enum ResponseEnum {

    /**
     * 未知错误
     */
    COMMONERROR("未知错误","999"),
    /**
     * 认证错误
     */
    AUTHERROR("认证错误","403");


    private String msg;

    private String code;

    ResponseEnum() {
    }

    ResponseEnum(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "ResponseEnum{" +
                "msg='" + msg + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
